package com.YCH.model.mappers.app;

import com.YCH.model.article.dtos.AppRealTimeInfoDto;
import com.YCH.model.article.pojos.TbAppRealTimeInfo;
import com.YCH.model.article.vos.AppRealTimeInfoId;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbAppRealTimeInfoMapper {
    /**
     * 根据id查询
     * @param list
     * @return
     */
    public List<TbAppRealTimeInfo> selectInformationById(@Param("list")List<AppRealTimeInfoId> list);

    /**
     * 根据最新时间查询
     * @param dto
     * @return
     */
    public List<TbAppRealTimeInfo> selectInformationByMAXTime(@Param("dto") AppRealTimeInfoDto dto);

    /**
     * 根据最晚时间查询
     * @param dto
     * @return
     */
    public List<TbAppRealTimeInfo> selectInformationByMINTime(@Param("dto") AppRealTimeInfoDto dto);

    /**
     * 根据标签查询
     * @param list
     * @return
     */
    public List<TbAppRealTimeInfo> selectRealTimeInfoByFlag(@Param("list")List<AppRealTimeInfoId> list);

}
